Part Number Hot Search : 
NJM25 MAX3745E MP1510 XXXSE IDP06E60 MIC2297 30M12 C4538
Product Description
Full Text Search
 

To Download MX909A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  communication semiconductors MX909A application note mobitex? r14n short data block frame support ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. 1. background the MX909A wireless packet data pump performs baseband signal processing and medium access control (mac) protocol functions for a gmsk wireless packet data modem. while the MX909A uses data block sizes and fec/crc algorithms compatible with the mobitex? network over-air-standard, it also provides flexible operating modes that make it suitable for private and general-purpose applications. the MX909A assembles application data received from the c, adds forward error correction (fec), adds an error detection (crc) code, interleaves this data to provide burst-error protection, and randomizes (scrambles) the bit pattern. after automatically adding bit and frame sync codewords, the data packet is converted to analog levels and gaussian filtered such that it is suitable for modulating a transmitter vco (modulation index = 0.5) creating gmsk signals at the transmitter output. figure 1, shows the mobitex? frame structure. 76543210 0 1 2 3 4 5 6 byte msb lsb frame head structure bit sync 1 bit sync 2 frame sync 1 frame sync 2 control byte 1 control byte 2 fec 1 fec 2 data 1 fec 1 byte fec 20 crc byte 2 76543210 msb lsb data block structure data or crc 3210 lsb msb fec 0 crc byte 1 data 2 data 3 data 4 data 5 data 6 data 7 data 8 data 9 data 10 data 11 data 12 data 13 data 14 data 15 data 16 data 17 data 18 fec 2 fec 3 fec 4 fec 5 fec 6 fec 7 fec 8 fec 9 fec 10 fec 11 fec 12 fec 13 fec 14 fec 15 fec 16 fec 17 fec 18 fec 19 data block 2 240 bits data block 32 240 bits interleave / de-interleave scramble / de-scramble data block 1 240 bits bit sync 16 bits frame sync 16 bits control bytes 16 bits fec 8 bits 7 byte frame head, always present data blocks, w hen present over air frame 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 figure 1: mobitex? over air signal format
mobitex? r14n short data block frame support page 2 of 6 MX909A application note ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. data is transmitted in the form of a frame head immediately optionally followed by up to 32 data blocks. the frame consists of: frame head (7 bytes) ? 2 bytes of bit sync (0xcccc for the down-link and 0x3333 for the up-link) ? 2 bytes of frame sync (system specific) ? 2 bytes of control data ? 1 byte of fec code (4 bits for each of the control bytes) data block (30 bytes) ? 18 bytes of data ? 2 bytes of crc (calculated from the 18 data bytes) ? 10 bytes of fec (4 bits of fec code for each of the data and crc bytes) ? the resulting 240 bits are interleaved and scrambled before transmission 2. the r14n short block frame acknowledgement a latest version of the mobitex? interface specification incorporates an extended battery saving protocol known as r14n that enhances mobitex? systems by supporting new services and levels of performance. the enhancements are in three key areas: better coverage, longer battery life and faster radio link reestablishment. r14n introduces a new rosi ( r adi o si gnaling) protocol link layer frame type called the sbf_ack (short block frame acknowledgement). this new frame type is shorter than others and improves base station reception success rate under adverse radio conditions. another advantage is reduced power consumption used to transmit the shorter frame. r14n allows mobiles to respond using a shorter transmit period, thus increasing battery life by reducing the rf transmitter on period. use of the shorter frame is only permitted in networks that support the extended battery saving protocol, so portable radio modems must first determine that a network provides support before using the new frame type. 76543210 0 1 2 3 4 5 6 byte msb lsb frame head structure bit sync 1 bit sync 2 frame sync 1 frame sync 2 control byte 1 control byte 2 fec 1 fec 2 data 1 fec 1 fec 6 crc byte 2 76543210 msb lsb short data block structure data or crc 3210 lsb msb fec 0 crc byte 1 data 2 data 3 data 4 fec 2 fec 3 fec 4 fec 5 interleave / de-interleave scramble / de-scramble data block 72 bits bit sync 16 bits frame sync 16 bits control bytes 16 bits fec 8 bits 7 byte frame head, always present data block, always present over air frame 1 2 3 4 5 byte figure 2: mobitex? short block frame over air signal format
mobitex? r14n short data block frame support page 3 of 6 MX909A application note ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. figure 2, shows the mobitex? short block frame. the format of the short block frame differs from all other frames only in the number of bytes contained in the data block and the mandatory presence of one data block. the data block for the short frame would be formed as follows: short data block (9 bytes) ? 4 bytes of data ? 2 bytes of crc (calculated from 4 data bytes) ? 3 bytes of fec code (4 bits for each of the data and crc bytes) ? the resulting 72 bits are interleaved and scrambled before transmission. the short frame block acknowledgement always contains one data block and is only transmitted, never received, by the modem. (base stations do not transmit sbf_acks to the modem.) 3. implementing the r14n short frame on the MX909A to support the mobitex tm r14n battery saving protocol, an end product must support the link layer to physical layer conversion for the new short block frame. data is transmitted over the air in the form of 'frames' consisting of the 'frame head' followed by one or more formatted data blocks. the MX909A constructs the data blocks from the 'raw' data using a combination of crc (cyclic redundancy checksum) generation, forward error correction coding (fec), interleaving and scrambling. the MX909A treats operations such as transmitting or receiving frames (or parts of a frame) as 'tasks', which are initiated by the c by writing instruction bytes to the command register. a frame, according to figure 1, would be sent by writing at7h (transmit 7 byte frame head) task followed by a tdb (transmit data block) task. the tdb 'task' takes 18 bytes of 'raw' data, calculates and applies a 16-bit crc and forms the fec for the 18 bytes and the crc. this data is then interleaved and passed through the scrambler (if enabled) before sending it as the data block part of the mobitex? frame. the MX909A does not have a 'task' similar to tdb for the short data block frame. the general-purpose 'tasks' tqb (transmit 4 bytes) or tsb (transmit single byte) could be used to transmit the shorter frame. the tqb and the tsb 'tasks' read the data as presented to the modem and transmit them without adding crc and fec, and without passing the data through the interleaver and the scrambler. for this reason, the host c must format the data before presenting it to the MX909A. section 6 shows a c program that will take 4 bytes of data and generate 9 bytes of formatted data ready for transmission. 4. transmit short frame example if the device is required to send a mobitex? short block frame, the following control signals and data should be issued to the modem, provided the device is not starting from powersave state. tx//rx is set to '1' and the scren, dara, ckdiv, and dqen have been set as required after power was applied to the device. 1. 6 bytes forming the frame head are loaded into the data buffer, followed by a 2-bit pause to let the filter stabilize, followed by a t7h task. 2. device interrupts host c with /irq when the 6 th byte is read from the data buffer 3. status register is read and the first 4 bytes of formatted data are loaded into the data buffer, followed by a tqb task. 4. device interrupts host c with /irq when 4 th byte is read from data buffer 5. status register is read, and the next 4 bytes of formatted data are loaded into the data buffer, followed by tqb task. 6. status register is read, and the last byte of formatted data is loaded into the data buffer, followed by a tsb task. 7. status register is read, host may load data and set next task as required: goto '1' if another frame is to be immediately transmitted goto '8' if no more data is to be immediately transmitted. 8. 1 byte representing the 'hang byte' is loaded into the data buffer followed by a tsb task.
mobitex? r14n short data block frame support page 4 of 6 MX909A application note ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. figure 3 shows a top level flowchart of the short block frame transmit process: start write task = 'reset' to command register set c tqb counter to 2 write ckdiv, hi//lo, and dara values to control register write irqen = '1', scren = '1', tx//rx = '1' to mode register read status register bfree = '1'? write 6 bytes of frame head to data buffer wait 2-bit times for lowpass filter to settle write task = 't7h' to command register wait for /irq line to go low then execute tx i.s.r wait for /irq line to go low then execute tx i.s.r decrement c tqb counter tqb counter = '0'? write 4 bytes of formatted data to data buffer write task = tqb to command register write last byte of formatted data into data buffer wait for /irq line to go low then execute tx i.s.r write 'hang byte' to data buffer write task = 'tsb' to command register finish no a a yes yes no read status register service other interrupts /irq bit = '1'? ibempty = '1'? bfree = '1'? fault detected: abort transmission fault detected: abort transmission tx interrupt service routine (i.s.r) no yes no yes no yes figure 3: transmit short block frame flow chart 5. conclusion this document describes how to implement the functions required for the transmission of the short block frame acknowledgement as specified in the latest version of the mobitex? interface specifications. the flexibility of the MX909A allows this to be done by making use of some of the more general-purpose 'tasks' supported by the device. the implementation requires that the c assemble the short data block by taking the 4 bytes of ?raw? data, processing the data to add the crc and fec codes, interleaving the data for burst error protection and then randomizing the data if the scrambling function is enabled.
mobitex? r14n short data block frame support page 5 of 6 MX909A application note ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. 6. 'c' language program /* program takes 4 bytes of 'raw data' and generates 9 bytes */ /* of formatted data by adding crc, fec, then interleaving */ /* and scrambling it (if scrambler enabled) */ #include int crc_16(int [], int); int fec_add(int); void interleave(int[]); /* function declarations */ void scramble_block(int); int outbits[72]; int bits[72]; /* global variables */ void main(void) { int n_bytes = 6; int data_bytes[6] = {0x09, 0xeb, 0xca, 0x20, 0, 0}; /*enter 4 'raw data' bytes*/ int crc,i,j,z,w = 0xff; crc = crc_16(data_bytes, n_bytes-2); /*crc generation function call*/ data_bytes[n_bytes - 2] = (crc >> 8) & 0x00ff; /*member 5 of array is crc msb*/ data_bytes[n_bytes - 1] = crc & 0x00ff; /*member 6 of array is crc lsb*/ for (i = 0; i < n_bytes; i++) { data_bytes[i] = fec_add(data_bytes[i]); /*fec generation function call*/ } interleave(data_bytes); /* interleave function call*/ scramble_block(1); /* 1 enables scrambler*/ printf("\n the formatted bytes are:"); /* print the 9 formatted bytes*/ for(j = 0 ;j<9; j++) { for(i = 0 ;i<8; i++) { w=w<<1; z = outbits[j*8 + i] & 0x1; w = (w | z) & 0xff; } printf("%4x", w); } } int crc_16(int data_bytes[], int n_bytes) { int i, j, fb, mask; long crc = 0xffff; /* crc generation */ for(i=0 ; i < n_bytes; i++) { mask = 1; /* as ccitt x25 */ for(j = 0 ;j<8; j++) /* x16 + x12 + x 5+1*/ { fb=0; if((data_bytes[i] & mask) != 0) fb=1; fb=(fb^crc)&1; crc = (crc >> 1) & 0x7fff; if(fb != 0) crc = crc ^ 0x8408; mask = (mask << 1); } } return(crc ^ 0xffff); /* 1s complement result */ }
mobitex? r14n short data block frame support page 6 of 6 MX909A application note ?2001 mx-com, inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 doc. # 208300160.001 4800 bethania station road, winston-salem, nc 27105-1201 usa all trademarks and service marks are held by their respective comp anies. /* add 4 bit fec to 8 bit data byte. return 12 bit result */ /* fec coding matrix. msb at left */ /* 11101100 1000 */ /* 11010011 0100 */ /* 10111010 0010 */ /* 01110101 0001 */ int fec_add(int x) { int y, i, b[8]; y=x; for(i = 0 ;i<8; i++) { b[i]=y&1; y=y>>1; } y = (x << 4) & 0xff0; if((b[7] ^ b[6] ^ b[5] ^ b[3] ^ b[2]) == 1) y |= 0x8; if((b[7] ^ b[6] ^ b[4] ^ b[1] ^ b[0]) == 1) y |= 0x4; if((b[7] ^ b[5] ^ b[4] ^ b[3] ^ b[1]) == 1) y |= 0x2; if((b[6] ^ b[5] ^ b[4] ^ b[2] ^ b[0]) == 1) y |= 0x1; return(y); } void interleave(int inbytes[]) /* interleave */ { int i, j, crc, data[6], bit, mask; mask = 0x800; for(i = 0 ; i < 12; i++) { for(j = 0 ;j<6; j++) { bit=0; if((inbytes[j] & mask) != 0) bit = 1; outbits[j + 6*i] = bit; } mask = mask >> 1; } } void scramble_block(int reset) { static int sreg; int i; if(reset != 0) sreg = 0x1ff; else sreg = 0x000; for(i = 0 ; i < 72; i++) { outbits[i] ^= (sreg & 1); if( ((sreg & 0x11) == 0x10) || ((sreg & 0x11) == 0x01)) sreg |= 0x200; sreg = (sreg >> 1) & 0x1ff; } }


▲Up To Search▲   

 
Price & Availability of MX909A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X